package com.yb.xczx.cloud.content.service;

import com.yb.xczx.cloud.content.entity.CourseCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yb.xczx.cloud.content.vo.CourseCategoryTreeVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程分类 服务类
 * </p>
 *
 * @author 姚兵
 * @since 2023-05-07
 */
public interface ICourseCategoryService extends IService<CourseCategory> {

    List treeNodes();

    /**
     * 返回值 key为mt或者st,value为对应的对象
     * @param mt
     * @param st
     * @return
     */
    Map<String, CourseCategory> getByMtSt(String mt, String st);

    void saveTreeToRedis(List<CourseCategoryTreeVo> courseCategoryTreeVos);
}
